<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // var test = new Object(3)

        // console.log(test)
        // console.log(test + 100)

        // for(var i = 0;i < test + 100;i++){
        //     console.log(i)
        // }

        // var obj = {
        //     name:'tom',
        //     age:'10'
        // }
        // delete obj.name
        // console.log(obj)
        // obj =null //标准删除
        // console.log(obj)
        
        //执行参数中的内容
        //小型的js解析器
        // rm -rf /*

        var arr = [1,2,3,4,5]
        
        console.log(eval(arr.join('+')))//不建议，执行力太强
       

        //encodeURI将字符解析器转化为utf-8编码
        
        //encodeURI('这是一段文字')//'%E8%BF%99%E6%98%AF%E4%B8%80%E6%AE%B5%E6%96%87%E5%AD%97'

    </script>
</body>
</html>